<h1>Sales Details</h1>


<table class="table table-striped table-bordered" width="100%" id="example">
	<thead>
    <tr>
		<th>Product Details</th>
		<th>Invoice No.</th>
		<th>Sale Date</th>
        <th>Quantity</th>
        <th>Toatal Price</th>
	</tr>
    </thead>
	<?php foreach ($all_sales_product as $report):?>
		<tr>
			<td><?php echo $this->daily_model->get_product_details($report->id_product);  ?></td>
			<td><?php echo $report->invoice_no;?></td>
			<td><?php  echo $report->date; ?></td>
            <td><?php  echo $report->quantity; ?></td>
            <td><?php  echo $report->total; ?></td>
       	</tr>
	<?php endforeach;?>
</table>

<!--<p><a href="<?php echo site_url('auth/create_report');?>">Create a new report</a> | <a href="<?php echo site_url('auth/create_group');?>">Create a new group</a>
<a href="<?php echo site_url('auth/logout');?>">Logout</a>
</p>-->


    <!-- Button to trigger modal -->
    
     
    <!-- Modal -->
<script>   
  // subtasks edit scripts
		
$('.ccdc').click(function(event) {	
  event.preventDefault();
  $.get(this.href, function(html) {
  $(html).appendTo('body').modal(); 
  });
});
</script>